import request from '@/utils/request'

// 在园宝宝 缺勤宝宝
export function dashboard1 (params = {}) {
  return request({
    url: 'v2/dashboard/dashboard_1',
    method: 'post',
    params
  })
}

// 园区数、学生数、教保师数。。。
export function dashboard2 () {
  return request({
    url: 'v2/dashboard/area_2',
    method: 'post'
  })
}

export function crmStatisticsRecord (params) {
  return request({
    url: 'crm/web/statistics/new_record',
    method: 'get',
    params
  })
}

export function finSatisticsByYear () {
  return request({
    url: 'crm/fin/satistics/overview/year',
    method: 'post'
  })
}

export function finSatisticsByMonth () {
  return request({
    url: 'crm/fin/satistics/overview/month',
    method: 'post'
  })
}

export function finIncomeCurveByYear () {
  return request({
    url: 'crm/fin/satistics/income/curve/year',
    method: 'get'
  })
}

export function finIncomeCurveByMonth () {
  return request({
    url: 'crm/fin/satistics/income/curve/month',
    method: 'get'
  })
}

export function dashboardByArea () {
  return request({
    url: 'v2/dashboard/area_1',
    method: 'post'
  })
}
